package com.ruoyi.dangerControl.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.dangerControl.mapper.HdCheckPlanMapper;
import com.ruoyi.dangerControl.domain.HdCheckPlan;
import com.ruoyi.dangerControl.service.IHdCheckPlanService;

/**
 * 隐患-检查计划Service业务层处理
 * 
 * @author lth
 * @date 2023-12-13
 */
@Service
public class HdCheckPlanServiceImpl implements IHdCheckPlanService 
{
    @Autowired
    private HdCheckPlanMapper hdCheckPlanMapper;

    /**
     * 查询隐患-检查计划
     * 
     * @param id 隐患-检查计划主键
     * @return 隐患-检查计划
     */
    @Override
    public HdCheckPlan selectHdCheckPlanById(Long id)
    {
        return hdCheckPlanMapper.selectHdCheckPlanById(id);
    }

    /**
     * 查询隐患-检查计划列表
     * 
     * @param hdCheckPlan 隐患-检查计划
     * @return 隐患-检查计划
     */
    @Override
    public List<HdCheckPlan> selectHdCheckPlanList(HdCheckPlan hdCheckPlan)
    {
        return hdCheckPlanMapper.selectHdCheckPlanList(hdCheckPlan);
    }

    /**
     * 新增隐患-检查计划
     * 
     * @param hdCheckPlan 隐患-检查计划
     * @return 结果
     */
    @Override
    public int insertHdCheckPlan(HdCheckPlan hdCheckPlan)
    {
        return hdCheckPlanMapper.insertHdCheckPlan(hdCheckPlan);
    }

    /**
     * 修改隐患-检查计划
     * 
     * @param hdCheckPlan 隐患-检查计划
     * @return 结果
     */
    @Override
    public int updateHdCheckPlan(HdCheckPlan hdCheckPlan)
    {
        return hdCheckPlanMapper.updateHdCheckPlan(hdCheckPlan);
    }

    /**
     * 批量删除隐患-检查计划
     * 
     * @param ids 需要删除的隐患-检查计划主键
     * @return 结果
     */
    @Override
    public int deleteHdCheckPlanByIds(Long[] ids)
    {
        return hdCheckPlanMapper.deleteHdCheckPlanByIds(ids);
    }

    /**
     * 删除隐患-检查计划信息
     * 
     * @param id 隐患-检查计划主键
     * @return 结果
     */
    @Override
    public int deleteHdCheckPlanById(Long id)
    {
        return hdCheckPlanMapper.deleteHdCheckPlanById(id);
    }
}
